import matplotlib.pyplot as plt
import numpy as np

def f(x):
    return 1/(1 + np.exp(-x))

if __name__ == '__main__':
    x = np.linspace(-10,10,100)
    y = f(x)

    plt.plot(x,y)
    plt.show()